package com.paramete;

public class MyParammete {
    public static void main(String[] args) {
        int sum1 = getsum(1, 2, 3, 4, 5);
        System.out.println(sum1);
    }
    public static int getsum(int...a){
        int sum=0;
        for (int i = 0; i < a.length; i++) {
         sum=sum+a[i];
        }
        return sum;
    }
}
